#include<stdio.h>
int main(void)
{
    int N,i,score,k,a,b,c,d,e;
    a=b=c=d=e=0;

    scanf("%d",&N);
    for(i=1;i<=N;i++){
        scanf("%d",&score);
        k=score/10;
        if(k==9||k==10)
            a++;
            else if(k==8)
                b++;
                else if(k==7)
                    c++;
                    else if(k==6)
                        d++;
                        else
                            e++;
                    

    }
            printf("%d %d %d %d %d",a,b,c,d,e);

            return 0;


}